<template>
  <div id="app">
    <router-view></router-view>
    <TabBar>
      <TabBarItem path="/page1">
        <img src="./assets/img/home.svg" slot="item-icon">
        <img src="./assets/img/home_active.svg" slot="item-icon-active">
        <div slot="item-text">首页</div>
      </TabBarItem>
      <TabBarItem path="/page2">
        <img src="./assets/img/category.svg" slot="item-icon">
        <img src="./assets/img/category_active.svg" slot="item-icon-active">
        <div slot="item-text">分类</div>
      </TabBarItem>
      <TabBarItem path="/page3">
        <img src="./assets/img/profile.svg" slot="item-icon">
        <img src="./assets/img/profile_active.svg" slot="item-icon-active">
        <div slot="item-text">购物车</div>
      </TabBarItem>
      <TabBarItem path="/page4">
        <img src="./assets/img/profile.svg" slot="item-icon">
        <img src="./assets/img/profile_active.svg" slot="item-icon-active">
        <div slot="item-text">我的</div>
      </TabBarItem>
    </TabBar>

    <!-- <img src="./assets/logo.png"> -->

  </div>
</template>

<script>
import TabBar, { } from "./components/TabBar.vue";
import TabBarItem, {  } from "./components/TabBarItem.vue";
export default {
  name: 'App',
  components:{
    TabBar,TabBarItem
  }
}
</script>

<style>
/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
